package com.vic.mvc.prepare.design.proxy;
/**
 * 使用继承的方式实现Car2代理Car
 * @author VIC
 *
 */
public class Car2 extends Car{

	@Override
	public void move() {
		long t1 = System.currentTimeMillis();
		System.out.println("START");
		//实现开车
		super.move();
		System.out.println("END");
		System.out.println("行驶时间：" + (System.currentTimeMillis() - t1) + "毫秒");
	
	}
	
	public static void main(String[] args) {
		MoveAble m = new Car2();
		m.move();
	}

}
